/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bground.sprites;

import bground.game.AI;
import bground.game.GameField;
import bground.game.I;
import java.util.Random;
/**
 *
 * @author s6_kustan_e
 */
public class Enemy extends ExtendedSprite {

    I controller;

    public Enemy(GameField game) {
        super("enemy", game);
        moveable = true;
        speed = 0.1;
        lives = 3;
        controller = new AI();
        Random r = new Random();
        setLocation(r.nextInt(4000), r.nextInt(4000));
    }


    @Override
    public void updateMovement(long l) {
        super.updateMovement(l);
        controller.action(this);
    }
}
